import Vue from 'vue'
import Vuex from 'vuex'
import state from './state'
import getters from './getters'
import mutations from './mutations'
import releaseAddressModules from 'src/pages/releaseAddress/store'
import houseDetailModules from 'src/pages/houseDetail/store'
import contractModules from 'src/pages/contract/store'
import contractDetailModules from 'src/pages/contractDetail/store'
import contractTenantDetailModules from 'src/pages/contractTenantDetail/store'
import tenantDetailModules from 'src/pages/tenantDetail/store'
import billDetailModules from 'src/pages/billDetail/store'
import billGetMoneyModules from 'src/pages/billGetMoney/store'
import checkoutDetailModules from 'src/pages/checkoutDetail/store'
import readMeterDetailModules from 'src/pages/readMeterDetail/store'
import changeMeterDetailModules from 'src/pages/changeMeterDetail/store'
import noticeDetailModules from 'src/pages/noticeDetail/store'
import strategyDetailModules from 'src/pages/strategyDetail/store'
import forgetChangePasswordModules from 'src/pages/forgetChangePassword/store'

Vue.use(Vuex)

const store = new Vuex.Store({
  state,
  getters,
  mutations,
  modules: {
    releaseAddress: releaseAddressModules,
    houseDetail: houseDetailModules,
    contract: contractModules,
    contractDetail: contractDetailModules,
    contractTenantDetail: contractTenantDetailModules,
    tenantDetail: tenantDetailModules,
    billDetail: billDetailModules,
    billGetMoney: billGetMoneyModules,
    checkoutDetail: checkoutDetailModules,
    readMeterDetail: readMeterDetailModules,
    changeMeterDetail: changeMeterDetailModules,
    noticeDetail: noticeDetailModules,
    strategyDetail: strategyDetailModules,
    forgetChangePassword: forgetChangePasswordModules
  }
})

export default store
